//
//  TTCoreCompatibility.h
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/**
 * SDK definitions useful in availability checks for conditionally compiling code.
 *
 * Example:
 *
 *     #if __IPHONE_OS_VERSION_MAX_ALLOWED >= TTIOS_3_2
 *       // This code will only compile on versions >= iOS 3.2
 *     #endif
 *
 * These macros are defined unconditionally and separately from the __IPHONE_* macros
 * because there might be methods that use the #ifdef state of one of the __IPHONE_ macros
 * to conditionally compile their code (however incorrect this may be).
 */
#define TTIOS_2_0 __IPHONE_2_0
#define TTIOS_2_1 __IPHONE_2_1
#define TTIOS_2_2 __IPHONE_2_2
#define TTIOS_3_0 __IPHONE_3_0
#define TTIOS_3_1 __IPHONE_3_1
#define TTIOS_3_2 __IPHONE_3_2
#define TTIOS_4_0 __IPHONE_4_0
#define TTIOS_4_1 __IPHONE_4_1
#define TTIOS_4_2 __IPHONE_4_2
#define TTIOS_4_3 __IPHONE_4_3
#define TTIOS_5_0 __IPHONE_5_0


/*
 * Hardware platform
 */
BOOL TTIsPad(void);
BOOL TTIsPod(void);
BOOL TTIsPhone(void);

/*
 * Software platform
 */
CGFloat TTOSVersion(void);

